package multiThread.assignment;

public class Counter implements Runnable {
	Storage st;

	public Counter(Storage st) {
		this.st = st;
	}

	@Override
	synchronized public void run() {
		for (int i = 0; i < 10; i++) {
			st.setNo(i);
			/*
			 * try { Thread.sleep(500); } catch (InterruptedException e) {
			 * System.out.println(e.toString()); }
			 */
		}
	}
}
